const fp = require('lodash/fp')
const cars = require('./code2.data')

// fp.prop 是 fp.get 的别名
const isLastInStock = fp.flowRight(fp.get('in_stock'), fp.last)

console.log('isLastInStock的结果是', isLastInStock(cars))
